package com.company.common.enums;


import com.company.common.exception.BaseErrorInfo;

/**
 * 自定义用户相关异常信息枚举类
 */
public enum UserErrorEnum implements BaseErrorInfo {


    USER_NOT_Update("2021", "修改失败"),//
    USER_NOT_FOUND("1001", "用户不存在"),//
    USER_NAME_OR_PASSWORD_ERROR("1002", "用户名或密码错误"),//
    USER_ExpireToken("1009", "登录失效"),//
    USER_NOT_Token("1010", "登录不存在"),//
    USER_Multiply("1004", "数据错误，找到多个用户"),//
    USER_UserType("1005", "用户类型错误"),//
    USER_NeedToken("1006", "请先登陆"),//
    USER_Unknown("0", "未知错误"),
    USER_NotCreator("1007","你不是创建者，不能对其进行修改"),
    USER_NotNull("198","参数类型不能为空"),

    USER_Courseware_ShareStatus("199","讲义包已发送,不能进行修改，若要修改请先复制"),
    USER_ALREADYREGISTER_ERROR("1007","该用户已经注册过这个端了！"),
    USER_NULL_PASSWORD_ERROR("1019","密码未空"),
    CLASS_ALREADY_EXISTS("1021","班级已存在"),
    USER_PASSWORD_LOCK("1023","用户已被锁定"),
    USERNAME_EXISTS("1025","用户名已存在"),
    INVITATION_CODE_EXPIRED("3001","邀请码已过期，请联系管理员重新获取"),
    USER_ACCOUNT_EXPIRED("3002","您的账号已过期，请联系管理员"),
    USER_UNDER_REVIEW("3003","您的账号还在审核中，请联系管理员"),
    USER_AUDIT_FAILED("3004","您的账号审核未通过，请联系管理员"),
    USER_CODE_EXISTS("1026","邀请码不存在或已过期！"),
//    USER_CODE_EXISTS("1026","邀请码不存在或已过期！"),
    USER_CLASS_EXISTS("1021","已在本班级，无法重复添加！"),
    FILE_ALREADY_EXISTS("4001","文件已存在")
    ;
    private String errorCode;
    private String errorMsg;

    UserErrorEnum(String errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }}
